package com.example.yqand4v1_1.controller;

import com.example.yqand4v1_1.beans.Result;
import com.example.yqand4v1_1.service.VideoServie;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/video")
@CrossOrigin
public class VideoContraller {
    @Resource
    private VideoServie videoServie;
    @RequestMapping(value = "/getToken",method = RequestMethod.GET,headers = "Accept=application/json")
    public Result<Object> connectvideo(@RequestParam String uid) throws Exception {
        return Result.success(videoServie.Getmessage(uid));
    }
}
